package com.lh.common.entity.admin;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lh.common.enums.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
 * ovmal_activity_shop_one:一元抢购活动表
 * @author Administrator 2020-05-09
 */
@TableName("ovmal_activity_shop_one")
@Alias("activityShopOne")
@Data
public class ActivityShopOne implements Serializable {
    @ApiModelProperty(value = "")
    @TableField(value = "aid")
    @TableId
    private Long aid;

    @ApiModelProperty(value = "活动名称",allowEmptyValue=true,required = true)
    @Column(name = "activity_name")
    private String activityName;

    @ApiModelProperty(value = "商品ID",allowEmptyValue=true,required = true)
    @Column(name = "shop_id")
    private Long shopId;

    @ApiModelProperty(value = "商品名称",allowEmptyValue=true,required = true)
    @Column(name = "shop_name")
    private String shopName;

    @ApiModelProperty(value = "商品图片",allowEmptyValue=true,required = true)
    @Column(name = "shop_img")
    private String shopImg;

    @ApiModelProperty(value = "商品价格",allowEmptyValue=true,required = true)
    @Column(name = "shop_price")
    private BigDecimal shopPrice;

    @ApiModelProperty(value = "商品成品价",allowEmptyValue=true,required = true)
    @Column(name = "shop_singleprice")
    private BigDecimal shopSingleprice;

    @ApiModelProperty(value = "活动价格",allowEmptyValue=true,required = true)
    @Column(name = "shop_activity_price")
    private BigDecimal shopActivityPrice;

    @ApiModelProperty(value = "商品属性 key:value",hidden = true)
    @TableField(exist = false)
    private String property;

    @ApiModelProperty(value = "筹集人次",allowEmptyValue=true,required = true)
    @Column(name = "portion_num")
    private Integer portionNum;

    @ApiModelProperty(value = "活动周期 (秒)",allowEmptyValue=true,required = true)
    @Column(name = "activity_cycle")
    private Integer activityCycle;

    @ApiModelProperty(value = "盈利金额",allowEmptyValue=true,required = true)
    @Column(name = "profit_amount")
    private BigDecimal profitAmount;

    @ApiModelProperty(value = "盈利金额总和(真实用户中奖后清空)")
    @Column(name = "sum_profit_amount")
    private BigDecimal sumProfitAmount;

    @ApiModelProperty(value = "活动开始类型  STARTNOW:立即开始 STARTTIME:指定时间开始",allowEmptyValue=true,required = true)
    @Column(name = "activity_type")
    private LotteryTypeStatus activityType;

    @ApiModelProperty(value = "活动开始时间 ")
    @Column(name = "activity_start_time")
    private Date activityStartTime;

    @ApiModelProperty(value = "活动状态  UpperShelf:上架; LowerShelf:下架")
    @Column(name = "status")
    private UpperLowerShelfStatus status;

    @ApiModelProperty(value = "活动显示状态  NOTSTARTED:未开始; UNDERWAY:进行中; FINISH:已结束")
    @Column(name = "activity_status")
    private ActivityStatusEnum activityStatus;

    @ApiModelProperty(value = "期数")
    @TableField(exist = false)
    private String period;

    @ApiModelProperty(value = "")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "")
    @Column(name = "is_del")
    private IsDel isDel;

    @ApiModelProperty(value = "ROBOT:固定机器人中奖; CALRULES:计算规则中奖")
    @Column(name = "is_robot")
    private IsRobotEnum isRobot;

    /**
     * ovmal_activity_shop_one
     */
    private static final long serialVersionUID = 1L;
}
